package com.pb.alibabademo.client.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(url = "http://192.168.141.205:8080", name = "test",fallback = TestServiceFeignFallBack.class)
public interface TestServiceFeign {

    @GetMapping("/api/test")
    String queryKnw(@RequestHeader("Authorization") String token);

   /* @PostMapping("/api/question/queryByIds")
    TikuRespDTO<List<QuestionDTO>> queryQuestionByIds(@RequestHeader("Authorization") String token, @RequestBody QuestionFeignReq questionReq);*/
}
